Skip to content

Conversation

@myandrienko
Copy link
Contributor

@myandrienko myandrienko commented Apr 8, 2025

This package has an optional dependency: @stream-io/openapi-realtime-api. We import types from this package, but usually this is not a problem, because:

  1. We import types with import type statement, so this import doesn't affect the runtime
  2. Most setups have skipLibCheck: true in their tsconfig, so importing types from a missing package doesn't raise errors

However, this is still a problem with skipLibCheck: false. It seems the only way to fix this is to add @ts-ignore to the import statement in declaration file.

@myandrienko myandrienko merged commit eb271c5 into main Apr 9, 2025
3 of 7 checks passed
@myandrienko myandrienko deleted the fix/handle-opt-dep branch April 9, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants